package com.briup.appointment.controller;

import com.briup.appointment.common.ApiResponse;
import com.briup.appointment.domain.SvcFeedback;
import com.briup.appointment.service.SvcFeedbackService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/feedback")
public class FeedbackController {

    private final SvcFeedbackService feedbackService;

    public FeedbackController(SvcFeedbackService feedbackService) {
        this.feedbackService = feedbackService;
    }

    @PostMapping("/submit")
    public ApiResponse<Void> submit(@RequestBody SvcFeedback feedback) {
        feedbackService.save(feedback);
        return ApiResponse.ok();
    }
}


